package org.oos.atom.elements;

import java.io.Serializable;

import com.google.api.client.util.Key;

public class Text implements Serializable {

	private static final long serialVersionUID = 4887529490057616269L;

	@Key("text()")
	private String text;

	@Key("@type")
	private String type;

	@Key("@xml:lang")
	private String language;
	
	@Key("@src")
	private String src;
	
	public Text() {
	}
	
	public Text(String value) {
		this.text = value;
	}

	public String getValue() {
		return text;
	}
	
	public void setValue(String value) {
		this.text = value;
	}

	public String getType() {
		return type;
	}

	public String getLanguage() {
		return language;
	}
	
	public String getSrc() {
		return src;
	}
	
	public boolean hasValue() {
		return text != null && text.length() > 0;
	}

}
